package com.fegin.bean.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 系统日志
 * </p>
 *
 * @author 张子艺
 * @since 2019-01-11
 */
@TableName("log_admin_agent")
public class SysLog extends Model<SysLog> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 请求地址
     */
	@TableField("request_url")
	private String requestUrl;
    /**
     * 请求方式
     */
	@TableField("request_way")
	private String requestWay;
    /**
     * IP
     */
	private String ip;
    /**
     * 方法地址
     */
	@TableField("method_url")
	private String methodUrl;
    /**
     * 方法别名
     */
	@TableField("method_name")
	private String methodName;
    /**
     * 请求参数
     */
	@TableField("request_param")
	private String requestParam;
    /**
     * 返回参数
     */
	@TableField("return_param")
	private String returnParam;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Long createTime;
    /**
     * 耗时
     */
	private String time;

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRequestUrl() {
		return requestUrl;
	}

	public void setRequestUrl(String requestUrl) {
		this.requestUrl = requestUrl;
	}

	public String getRequestWay() {
		return requestWay;
	}

	public void setRequestWay(String requestWay) {
		this.requestWay = requestWay;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getMethodUrl() {
		return methodUrl;
	}

	public void setMethodUrl(String methodUrl) {
		this.methodUrl = methodUrl;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getRequestParam() {
		return requestParam;
	}

	public void setRequestParam(String requestParam) {
		this.requestParam = requestParam;
	}

	public String getReturnParam() {
		return returnParam;
	}

	public void setReturnParam(String returnParam) {
		this.returnParam = returnParam;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SysLog{" +
			"id=" + id +
			", requestUrl=" + requestUrl +
			", requestWay=" + requestWay +
			", ip=" + ip +
			", methodUrl=" + methodUrl +
			", methodName=" + methodName +
			", requestParam=" + requestParam +
			", returnParam=" + returnParam +
			", time=" + time +
			"}";
	}
}
